package LearnOverloading;

public class Main {
    public static void main(String[] args) {
        String s = "Hello World!";
        int i1 = s.indexOf('o'); // find by char
        int i2 = s.indexOf("lo"); // find by str
        int i3 = s.indexOf('o',5); // find by char from index
        int i4 = s.indexOf("l", 3); // find by str from index
        System.out.println(i1);
        System.out.println(i2);
        System.out.println(i3);
        System.out.println(i4);

    }
}
